using ExpressesClass.BestApi.Base;
using ExpressesClass.BestApi.kdRnsNotifyRsp;
using ExpressesClass.BestApi.Utils;
using System;

namespace ExpressesClass.BestApi.kdRnsNotifyReq
{
    public class KdRnsNotifyReq : BaseRequest
    {
		public string mailNo { get; set; }
		public string txLogisticID { get; set; }
		public string userName { get; set; }
		public string documentType { get; set; }
		public string documentNumber { get; set; }
		public string addressType { get; set; }
		public string address { get; set; }
		public string mobilePhone { get; set; }
		public string sourceDb { get; set; }
		public string acceptTime { get; set; }
       
		public override String obtainServiceType()
        {
            return "KD_RNS_NOTIFY";

        }

		public override BaseResponse makeResponse(string rsp, string format)
        {
           if ("XML".Equals(format, StringComparison.InvariantCultureIgnoreCase)) {
               return XmlUtils.xmlToObj(rsp,typeof(KdRnsNotifyRsp)) as KdRnsNotifyRsp;
           }
           return JsonParser.jsonToObj<KdRnsNotifyRsp>(rsp);
        }


    }
}